package com.blacksheep.mtm.dao;

import com.blacksheep.mtm.dto.report.BoxUseRecords;
import com.blacksheep.mtm.pojo.manager.TbBindOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbBindOrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TbBindOrder record);

    int insertSelective(TbBindOrder record);

    TbBindOrder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbBindOrder record);

    int updateByPrimaryKey(TbBindOrder record);

    List<BoxUseRecords> selectBoxUseRecords(@Param("search") String search, @Param("minDate") String minDate,
                                            @Param("maxDate") String maxDate, @Param("orderCol") String orderCol,
                                            @Param("orderDir") String orderDir);

    //根据时间和
//    TbBindOrder selectByCodeAndTime(@Param("maxDate") String maxDate, @Param("orderCol") String orderCol,@Param("code") String code);
}